import requests
import json
#禁用sll
#from requests.packages.urllib3.exceptions import InsecureRequestWarning
#requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

#JSON数据请求
url='https://passport.cnblogs.com/user/signin'
namePassWord={"input1":"l0LPjDyu92No7y0z9fJ2hHShuGjL7tABIEutJPpxA2lCL55gEYWNraTqhS+8lmEytdaT4XICJO9+54xkzZi/bPs07UGhzLubmMA/DUqCYm95wCZkFbmlP6qTVguCWhMRQ4Q4KfVV8Jz1ztl811pgrfksZCy0wS8AZ2N/q1zqrmE=","input2":"cPQ5eqd2/5fsWQqmz9Hs6+qhJuB3S9F2RWe36wkVCchnO8WybWpt4AFHt86cCf6nW+bLji0swhxWkLzsxdBgZCG4JtZFhNO7NiLLz2f5Q4/8zacrfbnpZ8kQWi3re+YFnr4rdD79xz8+nHlR+KxtXgfeVmE22LZIAELLMVc+DWg=","remember":'false'}
headers={'User-Agent':"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0",
         'Accept':'application/json, text/javascript, */*; q=0.01',
         'Accept-Language':'zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3',
         'Accept-Encoding':'gzip, deflate, br',
         'Content-Type':'application/json; charset=utf-8',
         'VerificationToken':'ZQbj0QfmdYKmvXE-DcEb-sfHo2UvPrRa-noXQOnCc8thd7opd46FhsE9tImXznXk'
                             'iL7d9kaTK-wroFRDLA5910vipus1:qp54e3-RbbT82SO8-DWwEsQdCVDmlg66eaMi'
                             '-QE4fs4ZouPLcts3vAc1cMq2IJuUXbz_bSPckm-PmBlDL2gkiJ0pFng1',
         'X-Requested-With':'XMLHttpRequest',
         'Content-Length':'386',
         'Cookie':'_ga=GA1.2.1578020020.1503646785; SERVERID=dcc5cb8c464da84cc9928c22dd5884f8|1503918573|1503909247; '
                  '_gid=GA1.2.975750944.1503883887',
         'Connection':'keep-alive',}
response=requests.post(url,headers=headers,json=namePassWord,verify=False)
print(response.status_code)
response_after=response.text

print(response_after,type(response_after))
response_after=json.loads(response_after)
print(response_after,type(response_after))

print(response.json(),type(response.json()))

